<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%--
  Created by IntelliJ IDEA.
  User: LV
  Date: 2016/7/21
  Time: 11:18
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <%--<meta charset="UTF-8">--%>
    <%--<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">--%>
    <%--<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0" />--%>
    <%--<!-- 全屏 -->--%>
    <%--<meta name="apple-mobile-web-app-capable" content="yes" />--%>
    <%--<!-- 上方栏显示 -->--%>
    <%--<meta name="apple-mobile-web-app-status-bar-style" content="black" />--%>
    <%--<!-- 不自动识别号码 -->--%>
    <%--<meta name="format-detection" content="telephone=no">--%>
    <%--<link href="public_skin/css/reset.css" rel="stylesheet">--%>
    <%--<link href="public_skin/css/shop_style.css" rel="stylesheet">--%>
    <%--<script src="../public_skin/js/jquery-1.11.1.min.js" type="text/javascript"></script>--%>
    <%--<script src="public_skin/js/shop.common.js" type="text/javascript"></script>--%>
    <title>订单发货</title>
    <script type="text/javascript">
        function submit_form() {
            $("#shipping_form").submit();
        }
    </script>
</head>
<body>
<%--<header>--%>
<%--<h1>订单发货</h1>--%>
<%--<a href="javascript:;"></a>--%>
<%--</header>--%>
<article class="viewports">
    <ul class="imglist01 c3">
        <li class="mb10">
            订单号：${orderModel.oOrder.orderNum}<span class="r c-cb1448">待发货</span>
        </li>
        <li class="mb10">
            下单时间：<fmt:formatDate value="${orderModel.oOrder.orderTime}" pattern="yyyy-MM-dd HH:mm:ss"/>
        </li>
        <li class="mb10 c5 cart_bg">
            <div class="layout-box ptb20">
                <div class="mr20">
                    <i class="ico-60 ico_address mt20"></i>
                </div>
                <div class="box-col">
                    <div>收货人：${orderModel.oOrder.consigneeName}<span class="r">${orderModel.oOrder.consigneePhone}</span></div>
                    <div class="hgt2 mt10">收货地址：${orderModel.oOrder.provinceName}${orderModel.oOrder.cityName}${orderModel.oOrder.districtName}${orderModel.oOrder.streetName}${orderModel.oOrder.address} </div>
                </div>
            </div>
        </li>
        <li class="mb10">

            <c:forEach items="${orderModel.orderProductsEntityList}" var="item">
                <div class="layout-box p20 odr_b">
                    <div class="ith_img usernane_img140 mr20">
                        <span class="bg_span" style="background-image:url(${item.image});"></span>
                    </div>
                    <div class="box-col">
                        <h2 class="fs28 hgt2">${item.title} ${item.attribute}</h2>
                        <div class="fs24 mt20 lh1">
                            <span class="c-cb1448">&yen;${item.price}</span>
                        <span class="r ">
                            &times;${item.quantity}
                            </span>
                        </div>
                    </div>
                </div>
            </c:forEach>

        </li>

        <li class="mb10 lh1-5">
            <form:form modelAttribute="goodsModel" action="${ctx}/sellerRefundOrder/savingCancelRefundThenSendGoods" method="post" id="shipping_form">
                <form>
                    <input type="hidden" name="orderRefundId" value="${orderRefundId}"/>
                    <div class="layout-box ptb10">
                        <span>快递公司：</span>
                        <div class="box-col plr10 odr r5">
                            <input type="text" value="" class="i_text" name="shippingName"/>
                        </div>
                    </div>
                    <form:errors path="shippingName" cssStyle="color: red"/>
                    <div class="layout-box ptb10">
                        <span>快递单号：</span>
                        <div class="box-col plr10 odr r5">
                            <input type="text" value="" class="i_text" name="shippingNum"/>
                        </div>
                    </div>
                    <form:errors path="shippingNum" cssStyle="color: red"/>
                </form>
            </form:form>
        </li>

    </ul>
    <div class="tac ptb30"><button class="i_btn b-2db22d cf r5 lh2 plr75" onclick="submit_form()">确认发货</button></div>
</article>
</body>
</html>
